package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.content.entity.CourseBase;
import com.xuecheng.content.entity.CourseMarketDTO;


/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-03-25
 */
public interface CourseBaseService extends IService<CourseBase> {
    PageVO<CourseMarketDTO> queryCourseList(PageRequestParams params, QueryCourseModel model,Long companyId);


    /**
     * 添加课程基本信息
     *
     * @param dto CourseBaseDTO 封装的课程对象dto，接收controller数据
     * @return CourseBaseDTO 封装的课程对象DTO，返回给controller的数据
     */
    CourseBaseDTO createCourserBase(CourseBaseDTO dto);

    CourseBaseDTO getCourseBaseById(Long courseBaseId, Long companyId);

    CourseBaseDTO modifyCourseBase(CourseBaseDTO dto);

    void removeCourseBaseById(Long courseBaseId, Long companyId);

    void commitCourseBase(Long courseBaseId, Long companyId);

    void approve(CourseBaseDTO dto);

    CourseBase getCourseBaseByBaseId(Long courseId, Long companyId);
}
